package com.dmxh.api;

import com.dmxh.pojo.TbItem;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("dongdongshop-brand-service")
public interface ItemAPI {
    @GetMapping("/item/queryById")
    public TbItem queryById(@RequestParam long id);

    //更新库存
    @PostMapping("/item/defStockCount")
    public void defStockCount(@RequestBody List<TbItem> list);
}
